package com.boruiimage.demo.doMain;

import java.awt.image.BufferedImage;
import java.util.Map;

public class Result {
    private Integer id;
    private String msg;
    private Integer code;
    private Map<String ,String> map;
    private String result;
    private String course;
    private String imgName;
    BufferedImage im ;

    public Result(Integer id, String msg, Integer code, Map<String, String> map, String result, String course, String imgName, BufferedImage im) {
        this.id = id;
        this.msg = msg;
        this.code = code;
        this.map = map;
        this.result = result;
        this.course = course;
        this.imgName = imgName;
        this.im = im;
    }

    public Result(String msg, Integer code, Map<String, String> map, String result, String course, String imgName, BufferedImage im) {
        this.msg = msg;
        this.code = code;
        this.map = map;
        this.result = result;
        this.course = course;
        this.imgName = imgName;
        this.im = im;
    }

    public Result() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getImgName() {
        return imgName;
    }

    public void setImgName(String imgName) {
        this.imgName = imgName;
    }

    public BufferedImage getIm() {
        return im;
    }

    public void setIm(BufferedImage im) {
        this.im = im;
    }

    @Override
    public String toString() {
        return "Result{" +
                "id=" + id +
                ", msg='" + msg + '\'' +
                ", code=" + code +
                ", map=" + map +
                ", result='" + result + '\'' +
                ", course='" + course + '\'' +
                ", imgName='" + imgName + '\'' +
                ", im=" + im +
                '}';
    }
}
